<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>QRoundProgressBar: G:/Work/sintegrial_projects/RoundProgressBar/svn/src/QRoundProgressBar.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">QRoundProgressBar
   &#160;<span id="projectnumber">0.1.b</span>
   </div>
   <div id="projectbrief">Qt circular progress bar widget</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">QRoundProgressBar.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * QRoundProgressBar - a circular progress bar Qt widget.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Sintegrial Technologies (c) 2015-now</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * The software is freeware and is distributed &quot;as is&quot; with the complete source codes.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * Anybody is free to use it in any software projects, either commercial or non-commercial.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * Please do not remove this copyright message and remain the name of the author unchanged.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * It is very appreciated if you produce some feedback to us case you are going to use</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * the software.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * Please send your questions, suggestions, and information about found issues to the</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * sintegrial@gmail.com</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#ifndef QROUNDPROGRESSBAR_H</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define QROUNDPROGRESSBAR_H</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;QWidget&gt;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="class_q_round_progress_bar.html">   60</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_q_round_progress_bar.html">QRoundProgressBar</a> : <span class="keyword">public</span> QWidget</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;{</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    Q_OBJECT</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="keyword">public</span>:    </div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keyword">explicit</span> <a class="code" href="class_q_round_progress_bar.html">QRoundProgressBar</a>(QWidget *parent = 0);</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> PositionLeft = 180;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> PositionTop = 90;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> PositionRight = 0;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> PositionBottom = -90;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="class_q_round_progress_bar.html#adfed4577b665b4768ddef18f7409a531">   75</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_q_round_progress_bar.html#adfed4577b665b4768ddef18f7409a531">nullPosition</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_nullPosition; }</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_round_progress_bar.html#aaa2c7a10d22d78b6251796fcb1e1d907">setNullPosition</a>(<span class="keywordtype">double</span> position);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="class_q_round_progress_bar.html#ad558d9fc452d6c958c33938b9e2d06f8">   86</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="class_q_round_progress_bar.html#ad558d9fc452d6c958c33938b9e2d06f8">BarStyle</a></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    {</div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="class_q_round_progress_bar.html#ad558d9fc452d6c958c33938b9e2d06f8af35631bca3f2fa1a45516eb599287d37">   89</a></span>&#160;        <a class="code" href="class_q_round_progress_bar.html#ad558d9fc452d6c958c33938b9e2d06f8af35631bca3f2fa1a45516eb599287d37">StyleDonut</a>,</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="class_q_round_progress_bar.html#ad558d9fc452d6c958c33938b9e2d06f8a747b6505b62062552dffa01dfb088286">   91</a></span>&#160;        <a class="code" href="class_q_round_progress_bar.html#ad558d9fc452d6c958c33938b9e2d06f8a747b6505b62062552dffa01dfb088286">StylePie</a>,</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="class_q_round_progress_bar.html#ad558d9fc452d6c958c33938b9e2d06f8ab461646fd31c727641cceae1580f1d73">   93</a></span>&#160;        <a class="code" href="class_q_round_progress_bar.html#ad558d9fc452d6c958c33938b9e2d06f8ab461646fd31c727641cceae1580f1d73">StyleLine</a></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    };</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_round_progress_bar.html#a69f9e8d936ea036a817e0237d825ff1f">setBarStyle</a>(<a class="code" href="class_q_round_progress_bar.html#ad558d9fc452d6c958c33938b9e2d06f8">BarStyle</a> style);</div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="class_q_round_progress_bar.html#a3a8cd6af4fdee948730a07a3db9d3f2e">  104</a></span>&#160;    <a class="code" href="class_q_round_progress_bar.html#ad558d9fc452d6c958c33938b9e2d06f8">BarStyle</a> <a class="code" href="class_q_round_progress_bar.html#a3a8cd6af4fdee948730a07a3db9d3f2e">barStyle</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_barStyle; }</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_round_progress_bar.html#a20dd82ecd3ec4e229e89de345b8c56a4">setOutlinePenWidth</a>(<span class="keywordtype">double</span> penWidth);</div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="class_q_round_progress_bar.html#abca8f709fc2b281fd5abd7c0d3b427e3">  114</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_q_round_progress_bar.html#abca8f709fc2b281fd5abd7c0d3b427e3">outlinePenWidth</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_outlinePenWidth; }</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_round_progress_bar.html#a03fd8b1c0f7247c0f48441a3f386e42e">setDataPenWidth</a>(<span class="keywordtype">double</span> penWidth);</div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="class_q_round_progress_bar.html#a2250195aeab5fa23d98fe6ca5c33b4c3">  124</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_q_round_progress_bar.html#a2250195aeab5fa23d98fe6ca5c33b4c3">dataPenWidth</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_dataPenWidth; }</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_round_progress_bar.html#adc1485e24b8e002cfb7c95b46a6ad64d">setDataColors</a>(<span class="keyword">const</span> QGradientStops&amp; stopPoints);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_round_progress_bar.html#a7e3e232b1722cd014d0430b9034b90df">setFormat</a>(<span class="keyword">const</span> QString&amp; <a class="code" href="class_q_round_progress_bar.html#ada21408c78da8a63ac7f3ab28e07a122">format</a>);</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_round_progress_bar.html#ada47a101d8b99d8c79f63b628d1cd2b3">resetFormat</a>();</div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="class_q_round_progress_bar.html#ada21408c78da8a63ac7f3ab28e07a122">  153</a></span>&#160;    QString <a class="code" href="class_q_round_progress_bar.html#ada21408c78da8a63ac7f3ab28e07a122">format</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_format; }</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_round_progress_bar.html#a25de8599227d5410b8707c660cf948e6">setDecimals</a>(<span class="keywordtype">int</span> count);</div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="class_q_round_progress_bar.html#a9fb5e55cb7968fb7595dc42e89164000">  164</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_q_round_progress_bar.html#a9fb5e55cb7968fb7595dc42e89164000">decimals</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_decimals; }</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="class_q_round_progress_bar.html#ac4a092bef0b89b4189fba8bd4e30719f">  170</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_q_round_progress_bar.html#ac4a092bef0b89b4189fba8bd4e30719f">value</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_value; }</div>
<div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="class_q_round_progress_bar.html#a9f131f87d04e504763d77761f052b702">  175</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_q_round_progress_bar.html#a9f131f87d04e504763d77761f052b702">minimum</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_min; }</div>
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="class_q_round_progress_bar.html#ad1da2164e103e3c97f8c85672b2fd07e">  180</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_q_round_progress_bar.html#ad1da2164e103e3c97f8c85672b2fd07e">maximum</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_max; }</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;<span class="keyword">public</span> Q_SLOTS:</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_round_progress_bar.html#ad3c2b288972437ed094828a1bfa4b12d">setRange</a>(<span class="keywordtype">double</span> min, <span class="keywordtype">double</span> max);</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_round_progress_bar.html#a1229c9552e8e15b7792ee5e73c156c27">setMinimum</a>(<span class="keywordtype">double</span> min);</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_round_progress_bar.html#a3496c5b4833b4621f649f1ed7a6f0dcc">setMaximum</a>(<span class="keywordtype">double</span> max);</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_round_progress_bar.html#a06ae7a5153c128cfc74928176f041235">setValue</a>(<span class="keywordtype">double</span> val);</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_round_progress_bar.html#a06ae7a5153c128cfc74928176f041235">setValue</a>(<span class="keywordtype">int</span> val);</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> paintEvent(QPaintEvent *event);</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawBackground(QPainter&amp; p, <span class="keyword">const</span> QRectF&amp; baseRect);</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawBase(QPainter&amp; p, <span class="keyword">const</span> QRectF&amp; baseRect);</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawValue(QPainter&amp; p, <span class="keyword">const</span> QRectF&amp; baseRect, <span class="keywordtype">double</span> <a class="code" href="class_q_round_progress_bar.html#ac4a092bef0b89b4189fba8bd4e30719f">value</a>, <span class="keywordtype">double</span> arcLength);</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> calculateInnerRect(<span class="keyword">const</span> QRectF&amp; baseRect, <span class="keywordtype">double</span> outerRadius, QRectF&amp; innerRect, <span class="keywordtype">double</span>&amp; innerRadius);</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawInnerBackground(QPainter&amp; p, <span class="keyword">const</span> QRectF&amp; innerRect);</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawText(QPainter&amp; p, <span class="keyword">const</span> QRectF&amp; innerRect, <span class="keywordtype">double</span> innerRadius, <span class="keywordtype">double</span> <a class="code" href="class_q_round_progress_bar.html#ac4a092bef0b89b4189fba8bd4e30719f">value</a>);</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    <span class="keyword">virtual</span> QString valueToText(<span class="keywordtype">double</span> <a class="code" href="class_q_round_progress_bar.html#ac4a092bef0b89b4189fba8bd4e30719f">value</a>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> valueFormatChanged();</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    <span class="keyword">virtual</span> QSize minimumSizeHint()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> QSize(32,32); }</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> hasHeightForWidth()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> heightForWidth(<span class="keywordtype">int</span> w)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> w; }</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    <span class="keywordtype">void</span> rebuildDataBrushIfNeeded();</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    <span class="keywordtype">double</span> m_min, m_max;</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    <span class="keywordtype">double</span> m_value;</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    <span class="keywordtype">double</span> m_nullPosition;</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    <a class="code" href="class_q_round_progress_bar.html#ad558d9fc452d6c958c33938b9e2d06f8">BarStyle</a> m_barStyle;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    <span class="keywordtype">double</span> m_outlinePenWidth, m_dataPenWidth;</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    QGradientStops m_gradientData;</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    <span class="keywordtype">bool</span> m_rebuildBrush;</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    QString m_format;</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    <span class="keywordtype">int</span> m_decimals;</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> UF_VALUE = 1;</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> UF_PERCENT = 2;</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> UF_MAX = 4;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    <span class="keywordtype">int</span> m_updateFlags;</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;};</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;<span class="preprocessor">#endif // QROUNDPROGRESSBAR_H</span></div>
<div class="ttc" id="class_q_round_progress_bar_html_a69f9e8d936ea036a817e0237d825ff1f"><div class="ttname"><a href="class_q_round_progress_bar.html#a69f9e8d936ea036a817e0237d825ff1f">QRoundProgressBar::setBarStyle</a></div><div class="ttdeci">void setBarStyle(BarStyle style)</div><div class="ttdoc">Sets visual style of the widget. </div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.cpp:102</div></div>
<div class="ttc" id="class_q_round_progress_bar_html"><div class="ttname"><a href="class_q_round_progress_bar.html">QRoundProgressBar</a></div><div class="ttdoc">The QRoundProgressBar class represents a circular progress bar and maintains its API similar to the Q...</div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.h:60</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_abca8f709fc2b281fd5abd7c0d3b427e3"><div class="ttname"><a href="class_q_round_progress_bar.html#abca8f709fc2b281fd5abd7c0d3b427e3">QRoundProgressBar::outlinePenWidth</a></div><div class="ttdeci">double outlinePenWidth() const </div><div class="ttdoc">Returns width of the outline circle pen. </div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.h:114</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_a1229c9552e8e15b7792ee5e73c156c27"><div class="ttname"><a href="class_q_round_progress_bar.html#a1229c9552e8e15b7792ee5e73c156c27">QRoundProgressBar::setMinimum</a></div><div class="ttdeci">void setMinimum(double min)</div><div class="ttdoc">Defines minimum of the allowed value range. If the current value does not fit into the range...</div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.cpp:59</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_ad3c2b288972437ed094828a1bfa4b12d"><div class="ttname"><a href="class_q_round_progress_bar.html#ad3c2b288972437ed094828a1bfa4b12d">QRoundProgressBar::setRange</a></div><div class="ttdeci">void setRange(double min, double max)</div><div class="ttdoc">Defines minimum und maximum of the allowed value range. If the current value does not fit into the ra...</div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.cpp:40</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_aaa2c7a10d22d78b6251796fcb1e1d907"><div class="ttname"><a href="class_q_round_progress_bar.html#aaa2c7a10d22d78b6251796fcb1e1d907">QRoundProgressBar::setNullPosition</a></div><div class="ttdeci">void setNullPosition(double position)</div><div class="ttdoc">Defines position of minimum value. </div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.cpp:89</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_ada47a101d8b99d8c79f63b628d1cd2b3"><div class="ttname"><a href="class_q_round_progress_bar.html#ada47a101d8b99d8c79f63b628d1cd2b3">QRoundProgressBar::resetFormat</a></div><div class="ttdeci">void resetFormat()</div><div class="ttdoc">Sets format string to empty string. No text will be shown therefore. See setFormat() for more informa...</div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.cpp:153</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_ad1da2164e103e3c97f8c85672b2fd07e"><div class="ttname"><a href="class_q_round_progress_bar.html#ad1da2164e103e3c97f8c85672b2fd07e">QRoundProgressBar::maximum</a></div><div class="ttdeci">double maximum() const </div><div class="ttdoc">Returns maximum of the allowed value range. </div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.h:180</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_a3496c5b4833b4621f649f1ed7a6f0dcc"><div class="ttname"><a href="class_q_round_progress_bar.html#a3496c5b4833b4621f649f1ed7a6f0dcc">QRoundProgressBar::setMaximum</a></div><div class="ttdeci">void setMaximum(double max)</div><div class="ttdoc">Defines maximum of the allowed value range. If the current value does not fit into the range...</div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.cpp:64</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_adc1485e24b8e002cfb7c95b46a6ad64d"><div class="ttname"><a href="class_q_round_progress_bar.html#adc1485e24b8e002cfb7c95b46a6ad64d">QRoundProgressBar::setDataColors</a></div><div class="ttdeci">void setDataColors(const QGradientStops &amp;stopPoints)</div><div class="ttdoc">Sets colors of the visible data and makes gradient brush from them. Gradient colors can be set for Do...</div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.cpp:132</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_ad558d9fc452d6c958c33938b9e2d06f8"><div class="ttname"><a href="class_q_round_progress_bar.html#ad558d9fc452d6c958c33938b9e2d06f8">QRoundProgressBar::BarStyle</a></div><div class="ttdeci">BarStyle</div><div class="ttdoc">The BarStyle enum defines general look of the progress bar. </div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.h:86</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_a2250195aeab5fa23d98fe6ca5c33b4c3"><div class="ttname"><a href="class_q_round_progress_bar.html#a2250195aeab5fa23d98fe6ca5c33b4c3">QRoundProgressBar::dataPenWidth</a></div><div class="ttdeci">double dataPenWidth() const </div><div class="ttdoc">Returns width of the data circle pen. </div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.h:124</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_a20dd82ecd3ec4e229e89de345b8c56a4"><div class="ttname"><a href="class_q_round_progress_bar.html#a20dd82ecd3ec4e229e89de345b8c56a4">QRoundProgressBar::setOutlinePenWidth</a></div><div class="ttdeci">void setOutlinePenWidth(double penWidth)</div><div class="ttdoc">Sets width of the outline circle pen. </div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.cpp:112</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_adfed4577b665b4768ddef18f7409a531"><div class="ttname"><a href="class_q_round_progress_bar.html#adfed4577b665b4768ddef18f7409a531">QRoundProgressBar::nullPosition</a></div><div class="ttdeci">double nullPosition() const </div><div class="ttdoc">Return position (in degrees) of minimum value. </div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.h:75</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_a25de8599227d5410b8707c660cf948e6"><div class="ttname"><a href="class_q_round_progress_bar.html#a25de8599227d5410b8707c660cf948e6">QRoundProgressBar::setDecimals</a></div><div class="ttdeci">void setDecimals(int count)</div><div class="ttdoc">Sets number of decimals to show after the comma (default is 1). </div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.cpp:160</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_a3a8cd6af4fdee948730a07a3db9d3f2e"><div class="ttname"><a href="class_q_round_progress_bar.html#a3a8cd6af4fdee948730a07a3db9d3f2e">QRoundProgressBar::barStyle</a></div><div class="ttdeci">BarStyle barStyle() const </div><div class="ttdoc">Returns current progree bar style. </div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.h:104</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_ad558d9fc452d6c958c33938b9e2d06f8a747b6505b62062552dffa01dfb088286"><div class="ttname"><a href="class_q_round_progress_bar.html#ad558d9fc452d6c958c33938b9e2d06f8a747b6505b62062552dffa01dfb088286">QRoundProgressBar::StylePie</a></div><div class="ttdoc">Pie style (filled pie segment with the text in center) </div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.h:91</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_ac4a092bef0b89b4189fba8bd4e30719f"><div class="ttname"><a href="class_q_round_progress_bar.html#ac4a092bef0b89b4189fba8bd4e30719f">QRoundProgressBar::value</a></div><div class="ttdeci">double value() const </div><div class="ttdoc">Returns current value shown on the widget. </div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.h:170</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_a03fd8b1c0f7247c0f48441a3f386e42e"><div class="ttname"><a href="class_q_round_progress_bar.html#a03fd8b1c0f7247c0f48441a3f386e42e">QRoundProgressBar::setDataPenWidth</a></div><div class="ttdeci">void setDataPenWidth(double penWidth)</div><div class="ttdoc">Sets width of the data circle pen. </div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.cpp:122</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_ad558d9fc452d6c958c33938b9e2d06f8ab461646fd31c727641cceae1580f1d73"><div class="ttname"><a href="class_q_round_progress_bar.html#ad558d9fc452d6c958c33938b9e2d06f8ab461646fd31c727641cceae1580f1d73">QRoundProgressBar::StyleLine</a></div><div class="ttdoc">Line style (thin round line around the text) </div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.h:93</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_ada21408c78da8a63ac7f3ab28e07a122"><div class="ttname"><a href="class_q_round_progress_bar.html#ada21408c78da8a63ac7f3ab28e07a122">QRoundProgressBar::format</a></div><div class="ttdeci">QString format() const </div><div class="ttdoc">Returns the string used to generate the current text. </div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.h:153</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_a06ae7a5153c128cfc74928176f041235"><div class="ttname"><a href="class_q_round_progress_bar.html#a06ae7a5153c128cfc74928176f041235">QRoundProgressBar::setValue</a></div><div class="ttdeci">void setValue(double val)</div><div class="ttdoc">Sets a value which will be shown on the widget. </div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.cpp:69</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_a9f131f87d04e504763d77761f052b702"><div class="ttname"><a href="class_q_round_progress_bar.html#a9f131f87d04e504763d77761f052b702">QRoundProgressBar::minimum</a></div><div class="ttdeci">double minimum() const </div><div class="ttdoc">Returns minimum of the allowed value range. </div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.h:175</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_ad558d9fc452d6c958c33938b9e2d06f8af35631bca3f2fa1a45516eb599287d37"><div class="ttname"><a href="class_q_round_progress_bar.html#ad558d9fc452d6c958c33938b9e2d06f8af35631bca3f2fa1a45516eb599287d37">QRoundProgressBar::StyleDonut</a></div><div class="ttdoc">Donut style (filled torus around the text) </div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.h:89</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_a7e3e232b1722cd014d0430b9034b90df"><div class="ttname"><a href="class_q_round_progress_bar.html#a7e3e232b1722cd014d0430b9034b90df">QRoundProgressBar::setFormat</a></div><div class="ttdeci">void setFormat(const QString &amp;format)</div><div class="ttdoc">Defines the string used to generate the current text. If no format is set, no text will be shown...</div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.cpp:143</div></div>
<div class="ttc" id="class_q_round_progress_bar_html_a9fb5e55cb7968fb7595dc42e89164000"><div class="ttname"><a href="class_q_round_progress_bar.html#a9fb5e55cb7968fb7595dc42e89164000">QRoundProgressBar::decimals</a></div><div class="ttdeci">int decimals() const </div><div class="ttdoc">Returns number of decimals to show after the comma (default is 1). </div><div class="ttdef"><b>Definition:</b> QRoundProgressBar.h:164</div></div>
</div><!-- fragment --></div><!-- contents -->
<hr>
Designed by Sintegrial Technologies (c) 2015-now
